import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity()
export class note {
  @PrimaryGeneratedColumn()
  id: string;

  @Column({ type: 'varchar' })
  title: string;

  @Column({ type: 'text' })
  content: string;

  @Column({ type: 'varchar' })
  author: string;

  @Column({ type: 'varchar' })
  createTime: string;

  @Column({ type: 'varchar' })
  modifyTime: string;
}
